package test_OOP01;

public class Teacher extends Person {
    int teacherId ;

    Teacher(){

    }
    Teacher(String name , int age , int teacherId){
        super(name,age);
        this.teacherId=teacherId;
    }

    @Override
    void showMessage() {
        System.out.println("老师的信息是：姓名："+name+"，年龄："+age+",工号："+teacherId);
    }
}
